﻿//=====================================================================
//==                  2011 www.21ce.cc By Jeff              ==
//==                     www.21ce.cc                        ==
//==                                           ==
//=====================================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WFinger.CMS;

public partial class usermycom_Look : WFinger.Web.UI.ManagePage
{
    Mycom myc = new Mycom();
    WFinger.CMS.Common.rootPublic pd = new WFinger.CMS.Common.rootPublic();
    protected void Page_Load(object sender, EventArgs e)
    {
        
        Response.CacheControl = "no-cache";
        string Commid = WFinger.Common.Input.Filter(Request.QueryString["Commid"]);
        DataTable dt = myc.sel(Commid);
        if (dt != null)
        {
            if (dt.Rows.Count > 0)
            {
                TitleBox.InnerHtml = dt.Rows[0]["Title"].ToString();
                ContentBox.InnerHtml = dt.Rows[0]["Content"].ToString();
                strUserNum.InnerHtml = "<a href=\"../../" + WFinger.Config.UIConfig.dirUser + "/ShowUser.aspx?uid=" + pd.getUserName(dt.Rows[0]["UserNum"].ToString()) + "\" target=\"_blank\"><font color=\"red\">" + pd.getUserName(dt.Rows[0]["UserNum"].ToString()) +"</font></a>";
                ipstr.InnerHtml = dt.Rows[0]["IP"].ToString();
                creatTime.InnerHtml = dt.Rows[0]["creatTime"].ToString();
            }
            dt.Clear(); dt.Dispose();
        }
    }   

}
